package com.lengxf.design;

public class Client {

    public static void main(String[] args) {
        MovieTicket mt = new MovieTicket();
        double originalPrice = 60.0;
        mt.setPrice(originalPrice);
        System.out.println("原始票价为: " + originalPrice);
        System.out.println("---------------");

        //此处可以增加判断逻辑 赋予mt不同折扣类
        Discount discount = new VipDiscount();
        mt.setDiscount(discount);
        double finalPrice = mt.getPrice();
        System.out.println("折后票价为： " + finalPrice);
    }

}
